package com.wing.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.system.model.entity.SystemRuleInfo;
import com.wing.system.model.request.SystemRuleInfoForm;
import com.wing.system.model.response.SystemRuleInfoVO;

import java.util.List;
import java.util.Map;

/**
 * 显示/规则配置-Service
 *
 * @author
 */
public interface SystemRuleInfoService extends IService<SystemRuleInfo> {

    /**
     * 添加
     *
     * @param systemRuleInfoForm
     * @return
     */
    int add(SystemRuleInfoForm systemRuleInfoForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<SystemRuleInfoVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<SystemRuleInfoVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    SystemRuleInfoVO get4appById(Long id);

    SystemRuleInfo getRuleInfo();
}
